//
// Created by lwj66 on 24-6-10.
//

#ifndef TEST_6_10_LINKEDLIST_H
#define TEST_6_10_LINKEDLIST_H

#include "assert.h"
#include "stdio.h"
#include "stdlib.h"
#define slType int
#define TYPESPECIFIER "%d->"

typedef struct linkedList
{
    slType ls;
    struct linkedList * next;
}SL;

//插 / 删
void pushFront(SL** ps, slType value);
void pushBack(SL** ps, slType value);
void popFront(SL** ps);
void popBack(SL** ps);
void insertAT(SL** ps, slType value, size_t index);
void removeAT(SL** ps, size_t index);

void listPrint(SL** ps);

void listClear(SL** ps);

int listFind(SL** ps, slType value);

#endif//TEST_6_10_LINKEDLIST_H

